import KZJRequest from '../index'
import { TRequestDefaultResult } from '../type'

enum Singer {
  Url = 'song/url', // 歌曲播放地址
  Detail = 'song/detail' // 歌曲详情数据
}

export function getMusicUrl(id: number) {
  return KZJRequest.get<TRequestDefaultResult>({
    url: Singer.Url,
    params: { id }
  })
}

export function getMusicDetail(ids: number) {
  return KZJRequest.get<TRequestDefaultResult>({
    url: Singer.Detail,
    params: { ids }
  })
}
